package com.hxd.otc.module.wallet.contract;

import com.hxd.otc.module.wallet.bean.CoinOneKeyRateVoBean;
import com.hxd.otc.module.wallet.bean.OneKeyCoinTypeRequest;
import com.hxd.otc.module.wallet.bean.WalletCoinRateVoBean;
import com.hxd.otc.mvp.base.IBasePresenter;
import com.hxd.otc.mvp.base.IBaseView;

import java.util.List;

/**
 * 包  名 :  com.hxd.otc.mvp.contract
 * 类  名 :  WalletCoinChangeContract
 * 作  者 :  卫广玉
 * 时  间 :  2018/6/5 17:46
 * 描  述 :  一键换币
 */
public interface WalletCoinChangeContract {
    interface View extends IBaseView {
        void SmsSendSuccess();

        void changeCoinSuccess();

        //设置是否可用发送短信，用于按钮是否可以点击
        void setSMSEnable(boolean b);

        //设置是否可以转账，用于按钮是否可以点击
        void setTransferEnable(boolean b);

        //查询汇率成功
        void getWalletCoinRateSuccess(List<CoinOneKeyRateVoBean> datas);
    }

    interface Presenter extends IBasePresenter {
        void getSmsCode(String phoneHost, String phoneNumber, String type);

        //获取交易行情
        void getWalletCoinRate();

        //AEC转MSC
        void AECChangeMSC(String aecAddress, String aecAmount, String captchCode, String fundPasswd, String mscAddress, String mscAmount);

        //其他转AEC
        void CoinChangeAEC(String aec2btcAmount, String aec2ltcAmount, String aec2ethAmount,
                           String aecAddress,
                           String btcAddress, String btcAmount,
                           String captchCode, String fundPasswd,
                           String ltcAddress, String ltcAmount,
                           String ethAddress, String ethAmount);

        void  oneCoinTypeChange( String coinType, String payPassword, List<OneKeyCoinTypeRequest> tradeCoinDtoList);
    }
}
